import App from './App';
import { createSSRApp } from 'vue';
import { setupPinia } from './sheep/store';
import * as Pinia from 'pinia';
import piniaPersist from 'pinia-plugin-persist-uni';
import share from './mixins/share.js'


export function createApp() {

  const app = createSSRApp(App);
  app.mixin(share)
  setupPinia(app);
  
  
  // const app = createSSRApp(App);
  // app.mixin(share)
  // app.use(Pinia.createPinia())
  // const pinia=Pinia.createPinia();
  // pinia.use(piniaPersist);

  return {
    app,
	Pinia
  };
}
